package org.example.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.domain.OrderDetail;
import org.example.domain.Orders;
import org.example.domain.R;
import org.example.service.OrderDetailService;
import org.example.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderdetailController {
    @Autowired
    private OrdersService ordersService;
    @Autowired
    private OrderDetailService orderDetailService;

    public R<String> save(@RequestBody Orders orders) {

        return null;
    }

//        @GetMapping("/page")
//    public R<Page> page(int page,int pageSize){
//            Page<OrderDetail> orderDetailPage = new Page<>(page,pageSize);
//            orderDetailService.page(orderDetailPage);
//            return R.success(orderDetailPage);
//        }
}
